<?xml version="1.0" encoding="windows-31j" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j" />
<title>Insert title here</title>
<script src="|-/js/jquery-1.2.1.js" type="text/javascript"></script>
<script src="|-/js/json.js" type="text/javascript"></script>
<script src="|-/js/jquery.flydom-3.0.6.js" type="text/javascript"></script>
<script src="|-/js/testcase.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#query").click(function(){
	
		
		$.post('|-/TestCase/queryTestCase.ajax',{
		},function(testcases_str){
			var testcases = eval('(' + testcases_str + ')');
			var json = testcases;
			var tpl = function() {
				console.debug(this.created);
			    return 	['tr',{},
			    			[
			    				'td', {}, this.id+"",
			    				'td', {}, this.version+"",
			    				'td', {}, this.precondition,
			    				'td', {}, this.operation,
			    				'td', {}, this.expectedresult,
			    				'td',{},this.created
			    			]
			    		];
			};
			var ta = $('#exampleTA');
			$('#exampleTA').tplAppend(json, tpl);
		});
	});
});
</script>
</head>
<body>
<div><input type="button" id="query" value="query"></input></div>
<div>
	<table>
		<thead>
			<tr>
				<td>id</td>
				<td>version</td>
				<td>precondition</td>
				<td>operation</td>
				<td>expectedresult</td>
				<td>created</td>
			</tr>
		</thead>
		<tbody id="exampleTA">
		
		</tbody>
	</table>
<div>
</body>
</html>